<?php
/**
 * 网站首页
 */

namespace app\controller;
use app\model\Goods;
use core\Controller;
class Index extends Controller{
	public function index() {
		$goods = new Goods();
		// 获取商品列
		$data = $goods->getAll();
		// echo url('goods', ['id' => 12]);
		// var_dump($data);
		$this->assign('data', $data);
		$this->fetch('index.php');

	}

	public function method() {
		$method = input('get.a','', 'trim');
		var_dump($method);
	}
}